package com.example.teesystem.entity.vo.advancedTrain;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import com.example.teesystem.common.valid.ValidIds;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AdvancedTrainUploadVo {
    /**
     * 所属科目
     */
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;
    
    /**
     * 所属章节
     */
    @ValidId(message = ValidErrorMessage.CHAPTER_ID_VALID_FAIL)
    private Integer chapterId;

    @NotNull(message = "是否公开")
    private Integer isOpen;

    private Integer preAdvancedTraining;

    /**
     * 题目id 列表
     */
    @ValidIds(message = ValidErrorMessage.ISSUE_ID_VALID_FAIL)
    private List<Integer> issueIds;

    @NotNull(message = "message不能为空")
    private String message;
}
